package com.leyou.search.service;

import com.leyou.search.dto.SearchParamDTO;
import com.leyou.search.entity.Goods;
import com.leyou.starter.elastic.entity.PageInfo;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

public interface SearchService {
    //TODO 自动补全
    Mono<List<String>> suggest(String key);

    //todo 最基本的收索查询
    Mono<PageInfo<Goods>> pageQuery(SearchParamDTO searchParamDTO);

    //todo 过滤条件的获取
    Mono<Map<String, List<?>>> filterQuery(SearchParamDTO searchParamDTO);
}
